package com.uum.admin.mapper;

import com.uum.admin.pojo.entity.SysMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Tsang_yc
 * @since 2022-01-14
 */
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    /**
     * 根据用户的角色id查询其权限
     * @param roleIds
     * @return
     */
    List<String> listAllPermissionByRoleId(List<Long> roleIds);

    List<String> listMenuPermission();

    List<SysMenu> listMenuByRoleId(String roleId);
}
